package com.soms.service.impl;

import java.util.List;

import com.soms.dao.ICityDAO;
import com.soms.domain.City;
import com.soms.service.ICityService;

public class CityServiceImpl implements ICityService {
	private ICityDAO cityDAO;
	
	public void addCity(City city) {
		cityDAO.save(city);
	}

	public void deleteCity(City city) {
		cityDAO.delete(city);
	}

	public void updateCity(City city) {
		cityDAO.saveOrUpdate(city);
	}

	public City getCity(String cityId) {
		return cityDAO.findById(entityClass, id);
	}

	public List<City> getAllCity() {
		// TODO Auto-generated method stub
		return null;
	}

}
